package entity;

public abstract class ENumberRegister extends ERegister {
	protected double min, max;
	
	public ENumberRegister(String name, int address, String dataType,
			String description, boolean plotable, String unit, double min, double max) {
		super(name, address, dataType, description, plotable, unit);
		this.min = min;
		this.max = max;
	}

	public double[] getBoundary() {
		double[] boundary = {min,max};
		return boundary;
	}
	
	public void setBoundary(int[] boundary) {
		this.min = boundary[0];
		this.max = boundary[1];
	}
            @Override
        public String toString(){
            return String.valueOf(getBoundary());     
        }
}
